home *** CD-ROM | disk | FTP | other *** search
- include("oops/r3slider.js");
- include("oops/r3window.js");
- include("oops/r3packer.js");
-
- // --- Create a window --
-
- window = new r3Window(R3WGA_Parent, _r3gui,
- R3WA_ReportCloseWindow, TRUE,
- R3WA_ReportNewSize, TRUE,
- R3WA_Title, "Align Sliders");
-
- // second, thought, let's move the window to position 200, 100
- window.SetLeft(200);
- window.SetTop(100);
-
- // -- create a geometry manager (packer) as usual
-
- packer = new r3Packer(R3PA_Orientation, R3PAOF_VERTICAL);
- window.SetGmanager(packer);
-
-
- // --- create five sliders
-
- var sliderLabels = ["Strength", "Brightness", "Number of colors",
- "Age", "Weight"];
-
- for(i = 0; i < sliderLabels.length; i++) {
- slider = new r3Slider(R3WGA_Parent, window,
- R3GA_Text, sliderLabels[i],
- R3GA_ToolTip, "This is a tool tip",
- R3GSLA_Min, 0,
- R3GSLA_Max, 100);
- packer.ADD(R3PAPF_EXPAND | R3PAPF_FILLX, R3PAAF_ALIGN, slider);
- }
-
-
- window.FIT(R3WFP_BESTFIT);
- window.REALIZE();
-